<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
		<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
		<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
	</head>
	<body>
		<div class="container" style="margin: 0px auto;width: 400px;">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th>选手号</th>
						<th>分数</th>					
					</tr>
				</thead>
				<tbody>
					<?php
						include_once("conn.php");
						$query = "select * from user";
						$pdotest->query('set names utf8');
						$result=$pdotest->query($query);
						$result->setFetchMode(PDO::FETCH_ASSOC);
						$i=0;
						while($row=$result->fetch()){
							$i++;
							echo "<tr>";
								echo "<th>".$row['id']."</th>";
								echo "<th><input type='number' name='socre'><button class='btn' id=".$row['id']." name=".$i.">确认修改</buttton></th>";
							echo "</tr>";
						}
					?>
				</tbody>
			</table>
			<div style="text-align: center;">
			<button type="button" class="btn btn-default">评分完成</button>
			</div>
		</div>
	</body>
<!-- <script type="text/javascript">
	$(document).ready(function(){
		$(".btn").bind("click",function(){
			var id=$(this).attr('id');
			// alert(id);
		});
	});
	$ajax({
		type: 'POST',
		url: 'insert.php',
		data: 
	})
</script> -->
</html>
